package bean;

/**
 * 右键 Generate
 * 1. 创建 Getter and Setter
 * 2. 创建 toString
 * 3. 创建有参构造方法 Constructor
 * 4. 创建默认无参构造方法 Constructor
 *
 * 添加 Maven 包 junit
 * 1. 选中项目，右键 Open Module Settings
 * 2. 选中 Libraries，点 + 号
 */
public class Dog {
    private String name;
    private int age;
    private String color;

    private String set() {
        return "set";
    }

    private String get() {
        return "get";
    }

    public Dog() {
    }

    public Dog(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }

    @Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", color='" + color + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

}
